package top.revery.api.api.task;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import top.revery.api.config.UserPageData;
import top.revery.api.entity.task.BaseLogTask;
import java.util.Map;


/**
 * @author denghao
 * @title 任务记录
 * @package
 * @date 2019/12/14 13:54
 */
@RequestMapping("/api_logTask")
public interface ILogTaskApi {
    //保存记录任务
    @PostMapping("/save")
    public BaseLogTask save(@RequestBody BaseLogTask baseLogTask) throws Exception;

    //分页多条件查询记录
    @PostMapping("/getList")
    public UserPageData getList(@RequestParam(value = "pageNum") int pageNum, @RequestParam(value = "pageSize") int pageSize,
                                @RequestBody Map map);

}
